import threading

def methodA():
    varA='abc'
    def methodB():
        print varA, threading.current_thread().name

    t=threading.Thread(target=methodB,name="Run1")
    t.start()
    t.join()

methodA()
